<template>
    <van-tabs v-model:active="active">
        <van-tab title="标签 1">
            <van-search v-model="value" shape="round" background="#4fc08d" placeholder="请输入搜索关键词" @search="searchval"/>
        </van-tab>
        <van-tab title="标签 2">内容 2</van-tab>
        <van-tab title="标签 3">内容 3</van-tab>
        <van-tab title="标签 4">内容 4</van-tab>
    </van-tabs>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
let router=useRouter()
const searchval=()=>{
    router.push('/search')
}
</script>

<style lang="scss" scoped></style>